package com.example.demothree.dao;

import com.example.demothree.bean.Goods;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface GoodsDao extends JpaRepository<Goods,Long> {
    @Query("from Goods where name = ?1")
    public Goods findGoodsByName(String name);
}
